import {HTTP} from "../util/http"
class LikeModel extends HTTP{
    like(behavier,artID,category) {
        let url = behavier ==="like" ?"like" :"like/cancel"
        this.request({
            url:url,
            method:"POST",
            data:{
                art_id:artID,
                type:category
            }
        })
    }
    getClaslikeStatus(artid,categry,sCallback)
    {
        this.request({
            url:'/classic/' + categry + "/" +  artid + "/favor",
            success:sCallback
           
        })
    }
}
export {LikeModel}